﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace l1cs.server.templates
{
    public class L1House
    {
        public L1House()
        {
        }

        private int _houseId;

        public int getHouseId()
        {
            return _houseId;
        }

        public void setHouseId( int i )
        {
            _houseId = i;
        }

        private String _houseName;

        public String getHouseName()
        {
            return _houseName;
        }

        public void setHouseName( String s )
        {
            _houseName = s;
        }

        private int _houseArea;

        public int getHouseArea()
        {
            return _houseArea;
        }

        public void setHouseArea( int i )
        {
            _houseArea = i;
        }

        private String _location;

        public String getLocation()
        {
            return _location;
        }

        public void setLocation( String s )
        {
            _location = s;
        }

        private int _keeperId;

        public int getKeeperId()
        {
            return _keeperId;
        }

        public void setKeeperId( int i )
        {
            _keeperId = i;
        }

        private bool _isOnSale;

        /// <summary>
        /// 競売中かどうか？
        /// </summary>
        /// <returns>競売中ならばTrue</returns>
        public bool isOnSale()
        {
            return _isOnSale;
        }

        public void setOnSale( bool flag )
        {
            _isOnSale = flag;
        }

        private bool _isPurchaseBasement;

        public bool isPurchaseBasement()
        {
            return _isPurchaseBasement;
        }

        public void setPurchaseBasement( bool flag )
        {
            _isPurchaseBasement = flag;
        }

        private DateTime _taxDeadline;

        /// <summary>
        /// 競売終了時間
        /// </summary>
        /// <returns></returns>
        public DateTime getTaxDeadline()
        {
            return _taxDeadline;
        }

        public void setTaxDeadline( Nullable<DateTime> i )
        {
            if ( i == null )
            {
                _taxDeadline = new DateTime();
            }
            else
            {
                _taxDeadline = (DateTime)i;
            }
        }
    }
}